//
//  BMPageViewController.h


#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class DWPageViewController;
@protocol BMPageViewControllerDelegate <NSObject>
@optional
- (void)pageViewController:(DWPageViewController *)pageViewController didScrollToIndex:(int)index;
- (void)pageViewController:(DWPageViewController *)pageViewController didScrollBetweenIndex1:(int)index1 index2:(int)index2 withPercent:(CGFloat)percent;
@end

@interface DWPageViewController : UIViewController
@property (nonatomic, weak) id<BMPageViewControllerDelegate> delegate;
@property (nonatomic, strong) NSArray *arrVC;
@property (nonatomic, assign) unsigned int selectIndex;

- (id)initWithViewControllers:(NSArray *)viewControllers;
- (void)turnToViewControllerByIndex:(int)index;

@end


